import request from '@/utils/request'

export function getBlacklist(data) {
  return request({
    url: 'blacklist/page',
    method: 'post',
    data
  })
}

export function getBlacklistDetail(data) {
  return request({
    url: '/blacklist/' + data,
    method: 'get'
  })
}

export function addBlacklist(data) {
  return request({
    url: '/blacklist/add',
    method: 'post',
    data
  })
}

export function editBlacklist(data) {
  return request({
    url: '/blacklist/update',
    method: 'post',
    data
  })
}

export function deleteBlacklist(data) {
  return request({
    url: '/blacklist/delete/' + data,
    method: 'post'
  })
}
